package com.cauli.manage.config.model.dto;

import com.cauli.model.dto.BaseDTO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @author Cauli
 * @date 2023-03-07 14:13
 * @description 系统设置更新参数
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ConfigUpdateDTO", description = "系统设置更新参数")
public class ConfigUpdateDTO extends BaseDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "系统设置ID不能为空")
    @ApiModelProperty("系统设置ID")
    private Long configId;

    @ApiModelProperty("系统设置标题")
    private String configTitle;

    @ApiModelProperty("系统设置名称")
    private String configName;

    @ApiModelProperty("参数值")
    private String configValue;

    @ApiModelProperty("系统设置分组")
    private String groupName;
}
